package com.blacktea.behavioralpatterns.statepattern;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @description: 下降电梯状态类
 * @author: black tea
 * @date: 2023/3/26 15:28
 */
@Slf4j
@Component
public class DownState implements ElevatorState {

    @Override
    public void openDoor() {
        log.info("电梯正在上行中，无法打开门！");
    }

    @Override
    public void closeDoor() {
        log.info("电梯正在上行中，无法关闭门！");
    }

    @Override
    public void goUp() {
        log.info("电梯转为上行状态！");
    }

}
